-- GENERATED SPELL FOR [Exodar Champion] --


function spell0_33739(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(63010,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33739', 0, 1)
end

function spell1_33739(pUnit, Event) --@Shield-Breaker,n/a--
pUnit:FullCastSpellOnTarget(65147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33739', 250, 1)
end

function Sorts_33739(pUnit, Event)
local choix_sorts_33739 = math.random(0, 1)
if choix_sorts_33739 == 0 then
pUnit:RegisterEvent('spell0_33739', 1, 1)
end
if choix_sorts_33739 == 1 then
pUnit:RegisterEvent('spell1_33739', 1, 1)
end
end

function mob33739_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33739', math.random(1500, 3000), 1)
end

function mob33739_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33739_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33739_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33739, 1, 'mob33739_Action')
RegisterUnitEvent(33739, 2, 'mob33739_Leave')
RegisterUnitEvent(33739, 3, 'mob33739_Kill')
RegisterUnitEvent(33739, 4, 'mob33739_Die')
